package com.seriializable;

import java.io.Serializable;

public class Animal implements Serializable {
    private int id = 1  ;
    private String sex;

    public String getSex() {
        return sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Animal(String sex) {
        this.sex = sex;
    }
}
